import {createStore,combineReducers,applyMiddleware} from 'redux'
import thunk from 'redux-thunk'
//分模块后的子reducer
import testReducer from './reducers/test'
import goodReducer from './reducers/good'

//把多个子reducer函数 合并成一个reducer
const reducer = combineReducers({
    test:testReducer,
    good:goodReducer,
})

const store = createStore(reducer,applyMiddleware(thunk))

export default store